package com.poi.qianmi.response;

import java.util.HashMap;
import java.util.Map;

/**
 * @Classname Response
 * @Description TODO
 * @Date 2019/9/20 2:37 下午
 * @Created by xiaocai
 */
public class Response {
    public static Map ok(int size, long ms) {
        Map map = new HashMap();
        map.put("result", "处理成功");
        map.put("处理数据条数:", size + "条");
        map.put("程序运行时间:", ms + "ms");
        return map;
    }

    public static Map fail() {
        Map map = new HashMap();
        map.put("result", "处理失败");
        return map;
    }
}
